<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:subview id="logged" rendered="#{loginBean.logged}">
<div class="right">
	<h:outputText value="#{messages.logged_loggedas}" /><br />
	<h:form>
	<table cellpadding="2" cellspacing="2">
	
		<tr>
			<td><h:outputText value="#{messages.logged_firstname}" /></td>

		</tr>
		<tr>
			<td><h:outputText value="#{loginBean.firstname}" /></td>

		</tr>

		<tr>
			<td><h:outputText value="#{messages.logged_lastname}" /></td>

		</tr>

		<tr>
			<td><h:outputText value="#{loginBean.lastname}" /></td>

		</tr>

		<tr>
			<td><h:commandButton value="#{messages.logged_logout}" action ="#{loginBean.doLogout}" /></td>

		</tr>
	</table>
	</h:form>
</div>
</f:subview>